#include "vector.h"




	Vector::Vector():
	x(0.0), y(0.0), z(0.0) 
	{
	}

	Vector::Vector(const double _x, const double _y, const double _z): x(_x), y(_y), z(_z) {}

	Vector::~Vector()
	{
	}

	bool Vector::equals(const vector::Vector &another)
	{
		if(another.x == x && another.y == y && another.z == z)
		{
			return true;
		}

		return false;
	}

	void Vector::set(const double _x, const double _y, const double _z)
	{
		x = _x;
		y = _y;
		z = _z;
	}

	double Vector::getX() const
	{
		return x;
	}

	double Vector::getY() const
	{
		return y;
	}

	double Vector::getZ() const
	{
		return z;
	}

	void* Vector::operator new(size_t)
	{
		return vectorPool.allocate();
	}

	void Vector::operator delete(void* pointer)
	{
		vectorPool.free(static_cast<Vector*>(pointer));
	}
